package com.unism.util;

import java.util.ArrayList;
import java.util.List;

public class Page<T> implements java.io.Serializable {

	private static final long serialVersionUID = 201304062330001L;

	private Integer total = 0;
	private List<T> rows = new ArrayList<T>(0);

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}
	
	public String toJsonString() {
		String result = "";
		try {
			result = JsonUtil.convertVO2String(this);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return result;
	}

}